<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="css/normalize.css"/>
    <style type="text/css">
        html {
            overflow: hidden;/*去除IE7默认滚动条*/
        }
        body,div{
            margin: 0;
            padding: 0;
        }
        .container {
            padding: 20px;
            border: 1px solid #000;
        }
        .clearfix{
            zoom: 1;/* IE6/7 */
        }
        .clearfix:after {/*ie6/7无效*/
            content:"";
            display:block;
            clear:both;
        }
        .inner {
            float: left;
            width: 50%;
            box-sizing: border-box;
        }
        .inner.left{
            padding-right: 10px;
        }
        .inner.right{
            padding-left: 10px;
        }
        .content{
            font-size: 16px;
            border: 1px dashed #000;
        }
    </style>
</head>
<body>
    <div class="container clearfix">
        <div class="inner left">
            <div class="content">A</div>
        </div>
        <div class="inner right">
            <div class="content">B</div>
        </div>
    </div>
</body>
</html>